package com.hzj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Set;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author hzj
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class VoteItem implements Serializable {
    public VoteItem() {
    }

    public VoteItem(Long vuUserId, Long vsId, Long voId) {
        this.vuUserId = vuUserId;
        this.vsId = vsId;
        this.voId = voId;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 自身id
     */
    @TableId(value = "vi_id", type = IdType.AUTO)
    private Long viId;

    /**
     * 用户id
     */
    private Long vuUserId;

    /**
     * 主题id
     */
    private Long vsId;

    /**
     * 选项id
     */
    private Long voId;
    @TableField(exist = false)
    private Set<VoteSubject> voteSubject;
    @TableField(exist = false)
    private Set<VoteOption> voteOptions;
}
